package com.ruoyi.file.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * contractFile对象 contract_file
 * 
 * @author zhangpu
 * @date 2024-05-10
 */
public class ContractFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractNo;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String contractName;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String fileName;

    /** 附件存放地址 */
    @Excel(name = "附件存放地址")
    private String filePath;

    /** 附件预览地址 */
    @Excel(name = "附件预览地址")
    private String viewPath;

    /** 附件大小 */
    @Excel(name = "附件大小")
    private String fileSize;

    /** 附件类型 */
    @Excel(name = "附件类型")
    private String fileType;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createPer;

    /** 创建时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
//    private Date createDate;
    private String createDate;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setContractNo(String contractNo) 
    {
        this.contractNo = contractNo;
    }

    public String getContractNo() 
    {
        return contractNo;
    }
    public void setContractName(String contractName) 
    {
        this.contractName = contractName;
    }

    public String getContractName() 
    {
        return contractName;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setViewPath(String viewPath) 
    {
        this.viewPath = viewPath;
    }

    public String getViewPath() 
    {
        return viewPath;
    }
    public void setFileSize(String fileSize) 
    {
        this.fileSize = fileSize;
    }

    public String getFileSize() 
    {
        return fileSize;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setCreatePer(String createPer) 
    {
        this.createPer = createPer;
    }

    public String getCreatePer() 
    {
        return createPer;
    }
//    public void setCreateDate(Date createDate)
    public void setCreateDate(String createDate)
    {
        this.createDate = createDate;
    }

//    public Date getCreateDate()
    public String getCreateDate()
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractNo", getContractNo())
            .append("contractName", getContractName())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("viewPath", getViewPath())
            .append("fileSize", getFileSize())
            .append("fileType", getFileType())
            .append("createPer", getCreatePer())
            .append("createDate", getCreateDate())
            .append("remark", getRemark())
            .toString();
    }
}
